package 面向对象_下.i抽象类和抽象方法.练习;

/**
 * @Projectname java_based
 * @Filename Manager
 * @Author an
 * @Data 2022/7/5 9:08
 * @Description TODO
 */
/*
 * 对于 Manager 类来说，他既是员工，还具有奖金(bonus)的属性。
 *
 */
public class Manager extends Employee{

    private double bonus;	//奖金

    public Manager(double bonus) {
        super();
        this.bonus = bonus;
    }

    public Manager(String name, int id, double salary, double bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }


    @Override
    public void work() {
        System.out.println("管理员工，提高公司运行效率。");
    }
}
